﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001157 RID: 4439
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetFriendRemarkNameScRsp : IMessage<SetFriendRemarkNameScRsp>, IMessage, IEquatable<SetFriendRemarkNameScRsp>, IDeepCloneable<SetFriendRemarkNameScRsp>, IBufferMessage
	{
		// Token: 0x1700382F RID: 14383
		// (get) Token: 0x0600C6A9 RID: 50857 RVA: 0x00218281 File Offset: 0x00216481
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetFriendRemarkNameScRsp> Parser
		{
			get
			{
				return SetFriendRemarkNameScRsp._parser;
			}
		}

		// Token: 0x17003830 RID: 14384
		// (get) Token: 0x0600C6AA RID: 50858 RVA: 0x00218288 File Offset: 0x00216488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetFriendRemarkNameScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003831 RID: 14385
		// (get) Token: 0x0600C6AB RID: 50859 RVA: 0x0021829A File Offset: 0x0021649A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetFriendRemarkNameScRsp.Descriptor;
			}
		}

		// Token: 0x0600C6AC RID: 50860 RVA: 0x002182A1 File Offset: 0x002164A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendRemarkNameScRsp()
		{
		}

		// Token: 0x0600C6AD RID: 50861 RVA: 0x002182B4 File Offset: 0x002164B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendRemarkNameScRsp(SetFriendRemarkNameScRsp other) : this()
		{
			this.remarkName_ = other.remarkName_;
			this.uid_ = other.uid_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C6AE RID: 50862 RVA: 0x002182F1 File Offset: 0x002164F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendRemarkNameScRsp Clone()
		{
			return new SetFriendRemarkNameScRsp(this);
		}

		// Token: 0x17003832 RID: 14386
		// (get) Token: 0x0600C6AF RID: 50863 RVA: 0x002182F9 File Offset: 0x002164F9
		// (set) Token: 0x0600C6B0 RID: 50864 RVA: 0x00218301 File Offset: 0x00216501
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string RemarkName
		{
			get
			{
				return this.remarkName_;
			}
			set
			{
				this.remarkName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17003833 RID: 14387
		// (get) Token: 0x0600C6B1 RID: 50865 RVA: 0x00218314 File Offset: 0x00216514
		// (set) Token: 0x0600C6B2 RID: 50866 RVA: 0x0021831C File Offset: 0x0021651C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x17003834 RID: 14388
		// (get) Token: 0x0600C6B3 RID: 50867 RVA: 0x00218325 File Offset: 0x00216525
		// (set) Token: 0x0600C6B4 RID: 50868 RVA: 0x0021832D File Offset: 0x0021652D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C6B5 RID: 50869 RVA: 0x00218336 File Offset: 0x00216536
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetFriendRemarkNameScRsp);
		}

		// Token: 0x0600C6B6 RID: 50870 RVA: 0x00218344 File Offset: 0x00216544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetFriendRemarkNameScRsp other)
		{
			return other != null && (other == this || (!(this.RemarkName != other.RemarkName) && this.Uid == other.Uid && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C6B7 RID: 50871 RVA: 0x002183A4 File Offset: 0x002165A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RemarkName.Length != 0)
			{
				num ^= this.RemarkName.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C6B8 RID: 50872 RVA: 0x00218417 File Offset: 0x00216617
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C6B9 RID: 50873 RVA: 0x0021841F File Offset: 0x0021661F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C6BA RID: 50874 RVA: 0x00218428 File Offset: 0x00216628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Uid);
			}
			if (this.RemarkName.Length != 0)
			{
				output.WriteRawTag(50);
				output.WriteString(this.RemarkName);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C6BB RID: 50875 RVA: 0x002184A4 File Offset: 0x002166A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RemarkName.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.RemarkName);
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C6BC RID: 50876 RVA: 0x00218518 File Offset: 0x00216718
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetFriendRemarkNameScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RemarkName.Length != 0)
			{
				this.RemarkName = other.RemarkName;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C6BD RID: 50877 RVA: 0x00218581 File Offset: 0x00216781
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C6BE RID: 50878 RVA: 0x0021858C File Offset: 0x0021678C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 50U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.RemarkName = input.ReadString();
					}
				}
				else
				{
					this.Uid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004FEA RID: 20458
		private static readonly MessageParser<SetFriendRemarkNameScRsp> _parser = new MessageParser<SetFriendRemarkNameScRsp>(() => new SetFriendRemarkNameScRsp());

		// Token: 0x04004FEB RID: 20459
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004FEC RID: 20460
		public const int RemarkNameFieldNumber = 6;

		// Token: 0x04004FED RID: 20461
		private string remarkName_ = "";

		// Token: 0x04004FEE RID: 20462
		public const int UidFieldNumber = 4;

		// Token: 0x04004FEF RID: 20463
		private uint uid_;

		// Token: 0x04004FF0 RID: 20464
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04004FF1 RID: 20465
		private uint retcode_;
	}
}
